﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="fanli_helps.aspx.cs" Inherits="Web.fanliAdmin.Info.fanli_helps" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>帮助表 - 后台管理 </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <script src="../js/function.js" type="text/javascript"></script>
    <script src="../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="right">
            <!-- 头部开始 -->
            <div class="right-title">
                返利网管理后台>帮助表</div>
            <div class="con-title">
                <img src="../image/icon01.gif" width="23" height="26" style="padding: 2px 0 0 15px;
                    float: left" />
                <span class="con-txt">帮助列表</span>
            </div>
            <!-- 头部开始 -->
            <!-- 查询开始 -->
            <div class="toptab" id="divQuery" runat="server">
                <div class="tabcontent">
                    <div class="span">
                        id：</div>
                    <div class="span">
                        <asp:TextBox ID="txtQryId" runat="server" Width="43px"></asp:TextBox></div>
                    <div class="span">
                        类别：</div>
                    <div class="span">
                        <asp:DropDownList ID="ddlcata" runat="server" DataTextField="cataName" 
                            DataValueField="id">
                        </asp:DropDownList>
                    </div>
                    <div class="span">
                        标题：</div>
                    <div class="span">
                        <asp:TextBox ID="txtQryTitle" runat="server"  Width="169px"></asp:TextBox></div>
                    <div class="span">
                        发布日期：</div>
                    <div class="span">
                        <asp:TextBox ID="txtStart" runat="server" Width="85px" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd',readOnly:true,maxDate:'#F{$dp.$D(\'txtEnd\')}'})"
                            CssClass="Wdate"></asp:TextBox>
                        到<asp:TextBox ID="txtEnd" runat="server" Width="85px" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd',readOnly:true,minDate:'#F{$dp.$D(\'txtStart\')}'})"
                            CssClass="Wdate"></asp:TextBox></div>
                    <div class="span">
                        来源：</div>
                    <div class="span">
                        <asp:TextBox ID="txtQrySource" runat="server"  Width="167px"></asp:TextBox></div>
                    <div class="span">
                        <asp:Button ID="btnQuery" CssClass="btnQuery" runat="server" Text=" 查询 " OnClick="btnQuery_Click" /></div>
                </div>
            </div>
            <!-- 查询结束 -->
            <!-- 信息列表开始 -->
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%"
                CssClass="GridViewStyle" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="id"
                EmptyDataText="对不起，暂时没有您要查询的信息！" OnRowDeleting="GridView1_RowDeleting">
                <Columns>
                    <asp:TemplateField HeaderText="序号">
                        <ItemTemplate>
                            <%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize +this.GridView1.Rows.Count + 1%>
                        </ItemTemplate>
                        <HeaderStyle ForeColor="Red" Width="50px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="50px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="ID">
                        <ItemTemplate>
                            <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="70px" />
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="类别">
                        <ItemTemplate>
                            <asp:Label ID="lblCata" runat="server" Text='<%# Eval("cataName") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="150px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="标题">
                        <ItemTemplate>
                            &nbsp;&nbsp;<asp:HyperLink ID="hlkID" ToolTip="点此查看帮助信息" runat="server" Text='<%#Eval("title") %>'
                                NavigateUrl="#" Target="_blank" ></asp:HyperLink>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="pubDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="发布日期">
                        <ItemStyle Width="150px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="hits" HeaderText="点击次数">
                        <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="source" HeaderText="来源" />
                    <asp:BoundField DataField="sortID" HeaderText="排序">
                        <ItemStyle Width="50px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="操作" ShowHeader="False">
                        <ItemTemplate>
                         <asp:HyperLink ID="hlEdit" ToolTip="点此修改帮助信息" runat="server"  NavigateUrl='<%#"fanli_helpsModify.aspx?id="+Eval("ID") %>' Target="_blank" onclick="window.open(this.href,'','width=1100,height=650');return false;" ImageUrl="~/fanliAdmin/image/edit.gif"></asp:HyperLink>&nbsp;&nbsp;
                            <asp:ImageButton ID="imbDelete" runat="server" CommandName="delete" ImageUrl="~/fanliAdmin/image/delete.gif"
                                OnClientClick="return confirm('您确定要删除该条信息吗？')" ToolTip="删除信息" />
                        </ItemTemplate>
                        <HeaderStyle Width="50px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="85px" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="GridViewHeaderStyle" />
                <RowStyle CssClass="GridViewRowStyle" />
                <EmptyDataRowStyle CssClass="GridViewEmpty" />
            </asp:GridView>
            <!-- 信息列表结束 -->
            <!-- 分页开始 -->
            <div class="content" id="divPager" runat="server">
                <div class="page">
                    <div class="page">
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginators" FirstPageText="首页"
                            LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" CurrentPageButtonClass="cpb"
                            HorizontalAlign="Center" ShowPageIndexBox="Always" SubmitButtonClass="button"
                            SubmitButtonText="GO" TextAfterPageIndexBox="页 " TextBeforePageIndexBox="跳到"
                            Width="98%" OnPageChanging="AspNetPager1_PageChanging" PageSize="30" CustomInfoHTML="共 %RecordCount% 条/共 %PageCount% 页"
                            CustomInfoSectionWidth="20%" ShowCustomInfoSection="Right" CustomInfoClass="paginators"
                            CustomInfoTextAlign="Center">
                        </webdiyer:AspNetPager>
                    </div>
                </div>
            </div>
            <!-- 分页结束 -->
        </div>
        <!-- 列表内容结束 -->
    </div>
    </form>
</body>
</html>
